package com.lightjet.macross.base.upms.service;

import com.lightjet.macross.base.upms.domain.ResourceInfo;
import com.lightjet.macross.base.upms.domain.SystemInfo;
import com.lightjet.macross.common.core.BaseService;

import java.util.List;

public interface ResourceInfoService extends BaseService<ResourceInfo,Integer> {
    //根据用户key 和 系统简称获取该用户在该系统下的所有资源
    List<ResourceInfo> GetUserResourceCollection(String userkey, String systemshortname);

    /**
     * Description //根据资源父节点及所属租户系统查询树状关系
     * @author lijia
     * @Param resourceInfo 资源节点对象
     * @param systemInfo 组合系统对象
     * @return java.util.List<com.lightjet.macross.base.upms.domain.ResourceInfo>
     * CreateTime 2020/3/11 9:10
     **/
    List<ResourceInfo> FindAllByParentAndBelongsystem(ResourceInfo resourceInfo,SystemInfo systemInfo);

    /**
     * Description //根据资源ID获取唯一对象
     * @author lijia
     * @Param id
     * @return com.lightjet.macross.base.upms.domain.ResourceInfo
     * CreateTime 2020/3/11 16:18
     **/
    ResourceInfo FindDistinctById(Integer id);
}
